<?php
/* -----------------------------------------------------------------
 *                        Aveghe My Blog
 * -----------------------------------------------------------------
 * Aveghe My Blog: made your blog easy!
 * Copyright (C) 2008 Elia Contini
 * 
 * Aveghe My Blog is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Aveghe My Blog is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */

$meta    = $this->head('meta'   , 'admin', $this->preferences);
$style   = $this->head('style'  , 'admin', $this->preferences);
$favicon = $this->head('favicon', 'admin', $this->preferences);
$rss     = $this->head('rss'    , 'admin', $this->preferences);

$baseURL = BASE_URL;

$siteTitle = '<h1><a href="'.$baseURL.'/" title="">'.stripcslashes($this->preferences['site_title'])."</a></h1>\n";

$report = '';
if(count($this->report) > 0)
	{
		$report = "\n<div id=\"report\">\n\t".$this->report[0]."</div>\n";
	}

$helloLogout = '';
$menu = '';
$content = <<< CONTENT
	
	<form action="$baseURL/user/do-login" method="post">
		<fieldset>
			<legend>Login</legend>
			
			<p class="borderTop">
				<label for="userLogin">Username</label>
				<input id="userLogin" name="userLogin" type="text" />
				
				<label for="userPassword">Password</label>
				<input id="userPassword" name="userPassword" type="password" />
				
				<input class="submit" type="submit" value="Login" />
			</p>
		</fieldset>
		<p><a href="#" title="Recupera la password">Recupera la password</a></p>		
	</form>

CONTENT;
	
include 'aveghe/themes/admin/'.$this->preferences['site_admin_theme'].'/template_admin.xhtml';
?>